package com.lanyou.esb.redis.vo;

import java.util.Calendar;
import java.util.Date;

/**
 * 平台吞吐量表
 * 
 * @author Davey.wu
 */
public class PfThroughputVo {
	/** 平台吞吐量表ID **/
	private String id;
	/** 领域信息表ID **/
	private String fieldId;
	/** 统计时间 **/
	private Date statisticsDate;
	/** 吞吐量 **/
	private double throughputQty;
	/** 是否可用 **/
	private String isEnable;
	/** 创建人 **/
	private String creator;
	/** 创建时间 **/
	private Date createDate;
	/** 最后更新人员 **/
	private String modifier;
	/** 最后更新时间 **/
	private Date lastUpdatedDate;

	public void incQty(double qty) {
		this.throughputQty += qty;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getFieldId() {
		return fieldId;
	}

	public void setFieldId(String fieldId) {
		this.fieldId = fieldId;
	}

	public Date getStatisticsDate() {
		return statisticsDate;
	}

	public void setStatisticsDate(Date statisticsDate) {
		if (statisticsDate != null) {
			Calendar calendar = Calendar.getInstance();
			calendar.setTime(statisticsDate);
			calendar.set(Calendar.HOUR_OF_DAY, 0);
			calendar.set(Calendar.MINUTE, 0);
			calendar.set(Calendar.SECOND, 0);
			calendar.set(Calendar.MILLISECOND, 0);
			this.statisticsDate = calendar.getTime();
			return;
		}
		this.statisticsDate = statisticsDate;
	}

	public double getThroughputQty() {
		return throughputQty;
	}

	public void setThroughputQty(double throughputQty) {
		this.throughputQty = throughputQty;
	}

	public String getIsEnable() {
		return isEnable;
	}

	public void setIsEnable(String isEnable) {
		this.isEnable = isEnable;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getModifier() {
		return modifier;
	}

	public void setModifier(String modifier) {
		this.modifier = modifier;
	}

	public Date getLastUpdatedDate() {
		return lastUpdatedDate;
	}

	public void setLastUpdatedDate(Date lastUpdatedDate) {
		this.lastUpdatedDate = lastUpdatedDate;
	}

}